using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class LogoInfo
	{
		#region CONSTRUCTORS
		public LogoInfo()
		{
		
			this.m_logoID = Util.NULL_LONG;
			this.m_logoName = Util.NULL_STRING;
			this.m_categoryID = Util.NULL_INT;
			this.m_imgLength = Util.NULL_INT;
			this.m_logoURL = null;
			this.m_logoData = Util.NULL_STRING;
			this.m_location = Util.NULL_STRING;
			this.m_sMSCount = Util.NULL_LONG;
			this.m_createdBy = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_status = Util.NULL_BYTE;
		}
		public LogoInfo( long logoID,  string logoName,  int categoryID,  int imgLength,  byte[] logoURL,  string logoData,  string location,  long sMSCount,  string createdBy,  DateTime createdDate,  byte status)
		{
		
			this.m_logoID = logoID;
			this.m_logoName = logoName;
			this.m_categoryID = categoryID;
			this.m_imgLength = imgLength;
			this.m_logoURL = logoURL;
			this.m_logoData = logoData;
			this.m_location = location;
			this.m_sMSCount = sMSCount;
			this.m_createdBy = createdBy;
			this.m_createdDate = createdDate;
			this.m_status = status;
		}
		public LogoInfo( DataRow dRow)
		{
		
			this.m_logoID = (long) Util.ReplaceDBNullTo(dRow["logoID"], Util.NULL_LONG);
			this.m_logoName = Util.ReplaceDBNullTo(dRow["logoName"], Util.NULL_STRING).ToString();
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_imgLength = (int) Util.ReplaceDBNullTo(dRow["imgLength"], Util.NULL_INT);
			this.m_logoURL = (byte[]) Util.ReplaceDBNullTo(dRow["logoURL"], null);
			this.m_logoData = Util.ReplaceDBNullTo(dRow["logoData"], Util.NULL_STRING).ToString();
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_sMSCount = (long) Util.ReplaceDBNullTo(dRow["sMSCount"], Util.NULL_LONG);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_logoID;
		private string m_logoName;
		private int m_categoryID;
		private int m_imgLength;
		private byte[] m_logoURL;
		private string m_logoData;
		private string m_location;
		private long m_sMSCount;
		private string m_createdBy;
		private DateTime m_createdDate;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public long LogoID
		{
			get
			{
				return this.m_logoID;
			}
			set
			{
				this.m_logoID = value;
			}
		}
		
		public string LogoName
		{
			get
			{
				return this.m_logoName;
			}
			set
			{
				this.m_logoName = value;
			}
		}
		
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public int ImgLength
		{
			get
			{
				return this.m_imgLength;
			}
			set
			{
				this.m_imgLength = value;
			}
		}
		
		public byte[] LogoURL
		{
			get
			{
				return this.m_logoURL;
			}
			set
			{
				this.m_logoURL = value;
			}
		}
		
		public string LogoData
		{
			get
			{
				return this.m_logoData;
			}
			set
			{
				this.m_logoData = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public long SMSCount
		{
			get
			{
				return this.m_sMSCount;
			}
			set
			{
				this.m_sMSCount = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}